﻿using UnityEngine;
using System.Collections;

public class Cloud : MonoBehaviour {

	//云雾出现时间
	public float cloud_Time = 10;
	Transform m_Transform;

	void Start () {
	
		m_Transform = this.transform;
        Destroy(this.gameObject,cloud_Time);
	}
	

	void Update () {
	
		float m_Y = m_Transform.position.y;
		m_Transform.position = new Vector3(m_Transform.position.x,m_Y-=Time.deltaTime*0.6F,0);
	}
}
